/*
 * singleton.h
 *
 *  Created on: 05.04.2012
 *      Author: e_krais
 */

#ifndef SINGLETON_H_
#define SINGLETON_H_

namespace strator
{
	template <class T>
	class Singleton
	{
	public:
		static T* getSingletonPtr()
		{
			static T m_instance;
			return &m_instance;
		}
	private:
		Singleton();
		~Singleton();
		Singleton(Singleton const&);
		Singleton& operator=(Singleton const&);
	};
}

#endif /* SINGLETON_H_ */
